package com.lcp.se.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lcp.se.entity.data.Appointment;
import com.lcp.se.entity.vo.AppointmentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预约消息的各项数据库操作
 *
 * @author lcp
 * @date 2020/7/26 20:29
 */
public interface AppointmentMapper extends BaseMapper<Appointment> {
    Integer count(@Param("msgStatus") Integer msgStatus);

    List<AppointmentVO> detailList(@Param("start") Integer start, @Param("offset") Integer offset, @Param("msgStatus") Integer msgStatus);

    AppointmentVO selectProcessingAppointment(@Param("userType") Integer userType, @Param("openId") String openId);

    AppointmentVO unCompleted(@Param("openId") String openId);
}
